#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<string>
#include<stack>
#include<algorithm>
using namespace std;


vector<int> dailyTemperatures(vector<int>& temperatures) {
	vector<int> arr(temperatures.size(), 0);
	stack<int> s;
	s.push(0);
	for (int i = 1; i<temperatures.size(); i++)
	{
		while (!s.empty() && temperatures[i]>temperatures[s.top()])
		{
			arr[s.top()] = i - s.top();
			s.pop();
		}
		s.push(i);
	}
	return arr;
}

vector<int> nextGreaterElement(vector<int>& nums1, vector<int>& nums2) {
	vector<int> arr(nums1.size(), -1);
	for (int i = 0; i<nums1.size(); i++)
	{
		auto tmp = find(nums2.begin(), nums2.end(), nums1[i]);
		
	}
	return arr;
}

int main()
{
	vector<int> tmp1 = {4,1,2};
	vector<int> tmp2 = { 1, 3, 4, 2 };
	vector<int> arr = nextGreaterElement(tmp1,tmp2);
	return 0;
}